﻿<%@ Control Language="C#" ClassName="BatchFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Batch No:</td>
				<td>
					<asp:TextBox runat="server" ID="dataBatchNo" Text='<%# Bind("BatchNo") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataBatchNo" runat="server" Display="Dynamic" ControlToValidate="dataBatchNo" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataBatchNo" runat="server" Display="Dynamic" ControlToValidate="dataBatchNo" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Type:</td>
				<td>
					<asp:TextBox runat="server" ID="dataType" Text='<%# Bind("Type") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataType" runat="server" Display="Dynamic" ControlToValidate="dataType" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataType" runat="server" Display="Dynamic" ControlToValidate="dataType" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Created By:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataCreatedBy" DataSourceID="CreatedByUserDataSource" DataTextField="Username" DataValueField="Id" SelectedValue='<%# Bind("CreatedBy") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:UserDataSource ID="CreatedByUserDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Created At:</td>
				<td>
					<asp:TextBox runat="server" ID="dataCreatedAt" Text='<%# Bind("CreatedAt", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCreatedAt" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataCreatedAt" runat="server" Display="Dynamic" ControlToValidate="dataCreatedAt" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


